import java.util.Scanner;

public class a034_二進位制轉換 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int input;
		
		String temp_output;
		String output;
		char each_str;
		
		while(sc.hasNext()) {
			input = sc.nextInt();
			
			temp_output = "";
			for(int i = input; i > 0; i /=2) {
				if(i % 2 == 0)
					temp_output += "0";
				else
					temp_output += "1";
			}
			
			output = "";
			for(int i = temp_output.length() - 1; i >= 0; i--) {
				each_str = temp_output.charAt(i);
				output += each_str;
			}
			
			System.out.println(output);
			
		} // next
	} // main
	
}